package com.mall.mapper;

import com.mall.po.Activity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhanghui
 * @ClassName ActityMapper
 * @Description 活动mapper接口
 * @Date 2021/1/5 20:21
 * @Version 1.0
 **/
public interface ActityMapper {
    /**
     * @Author zhanghui
     * @Description 添加活动
     * @Date 2021/1/5 20:23
     * @Param [actity]
     * @return int
     **/
    public int insertActity(Activity actity);
    /**
     * @Author zhanghui
     * @Description 删除活动
     * @Date 2021/1/5 20:27
     * @Param [id]
     * @return int
     **/
    public int deleteActity(int activitysid);

    /**
     * @Author zhanghui
     * @Description 修改活动
     * @Date 2021/1/5 20:27
     * @Param
     * @return
     **/
    public int updateActity(Activity actity);

    /**
     * @Author zhanghui
     * @Description 根据商品名称查询活动
     * @Date 2021/1/5 20:28
     * @Param
     * @return
     **/
    public Activity selectActityByGoodsname(String goodsname);
    /**
     * @Author zhanghui
     * @Description 批量删除
     * @Date 2021/1/7 14:05
     * @Param [ids]
     * @return int
     **/
    public boolean deleteActityList(Integer[] activitysids);

    /**
     * @Author zhanghui
     * @Description 分页查询
     * @Date 2021/1/7 15:14
     * @Param [page, limit]
     * @return java.util.List<com.mall.po.Activity>
     **/
    public List<Activity> selectAllActity(@Param("page") int page,@Param("pagesize") int pagesize);

}
